import numpy as np
import json

adjust_json = json.load(open('./to_adjust-gyh.json', 'r', encoding='utf-8'))
trans_mat = adjust_json['transformation']
trans_mat = np.array(trans_mat).T.tolist()
json.dump({'transformation': trans_mat}, open('./to_adjust.json', 'w', encoding='utf-8'), indent=4)